var smallerNumbersThanCurrent = function(nums) {
    let arr = []
    let result
    for(let i=0;i<nums.length;i++){
        result = 0
        for(let j=0;j<nums.length;j++){
            if(nums[i]>nums[j])
            result++
        }
        arr.push(result)
    }
    return arr
};